package sym.qrcode.encoder;

import java.util.ArrayList;

public class ErrorBlock {
	public int blockID;
	public int count;
	public ArrayList errorByteList;

	public ErrorBlock() {
		count = 0;
		blockID = -1;
		errorByteList = new ArrayList();
	}

	public ErrorBlock(int blockID) {
		count = 0;
		this.blockID = blockID;
		errorByteList = new ArrayList();
	}

	public void update(int byteCount) {
		if (errorByteList.contains(byteCount)) {

		} else {
			errorByteList.add(byteCount);
			count++;
		}
	}
}
